package com.flame.auth.core.config;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 *
 *
 * @author wuxintong
 * @since 2022/12/14
 */
@ConfigurationProperties("flame.auth")
public class AuthConfigurationProperties {

    private List<String> whiteList = new ArrayList<>();


    @PostConstruct
    public void init() {
        whiteList.add("/auth/login");
        whiteList.add("/auth/logout");
    }

    public List<String> getWhiteList() {
        return whiteList;
    }

    public void setWhiteList(List<String> whiteList) {
        this.whiteList = whiteList;
    }
}
